FROM xxfaxy/self-alpine-nginx-php-fpm:self
ADD common/ext/php7.0.10-swoole2.0.5.so /usr/lib/php7/modules/swoole.so
ADD common/nginx.main.conf /etc/nginx/nginx.conf
ADD common/php.ini /etc/php7/php.ini
ADD common/nginx.conf /etc/nginx/conf.d/nginx.conf
ADD common/php-fpm.conf /etc/php7/php-fpm.conf
ADD common/50-setting.ini /etc/php7/conf.d/50-setting.ini
ADD code /app
RUN chown nginx:nginx /app -R
RUN chmod 777 /app -R
EXPOSE 80
